package com.example.wisdomclassroomapi.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.wisdomclassroomapi.domain.entity.AuthUrBindEntity;
import com.example.wisdomclassroomapi.domain.repository.AuthUrBindRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Package: com.example.wisdomclassroomapi.domain.service
 * @Description: <>
 * @Author: scholes
 * @CreateDate: 2022-04-18
 * @UpdateUser: scholes
 * @UpdateDate: 2022-04-18
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Service
public class AuthUrBindDomainService {
    @Resource
    private AuthUrBindRepository authUrBindRepository;

    public void add(AuthUrBindEntity entity) {
        authUrBindRepository.add(entity);
    }

    public AuthUrBindEntity findById(String id) {
        return authUrBindRepository.findById(id);
    }

    public int updateById(AuthUrBindEntity entity) {
        return authUrBindRepository.updateById(entity);
    }

    public int deleteById(String id) {
        return authUrBindRepository.deleteById(id);
    }

    public IPage<AuthUrBindEntity> page(AuthUrBindEntity entity, IPage page) {
        return authUrBindRepository.page(entity, page);
    }

    public List<AuthUrBindEntity> list(AuthUrBindEntity entity) {
        return authUrBindRepository.list(entity);
    }

}